<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>登陆</title>
    <link href="/static/mobile/css/mui.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/static/mobile/css/basic.css"/>
    <link rel="stylesheet" type="text/css" href="/static/mobile/css/login.css"/>
	<link rel="stylesheet" href="/static/plugins/layui/css/layui.css">
    <script type="text/javascript" src="/static/mobile/js/jquery.js">
    	
    </script>
    
    <script type="text/javascript" charset="utf-8">
      	
    </script>
	<style>
		.section2 .sub button {
			width: 100%;
			padding: 5px;
			font-size: 1rem;
			color: #fff;
			background: #E52D2D;
			border-color: #E52D2D;
		}
		body{
			width: 100%;
			background:linear-gradient(to bottom,#fe6b58,#ff4f2c);
		}
		.f1 input::-webkit-input-placeholder{
			color: #eee;
		}
		.f1 input{
			background: none;
			color: #fff;
			border-color: #eee !important;
		}
		.sub button{
			width: 100%;
			height: 45px;
			border-radius: 25px;
			background: #eee;
			color: #fe6b58;
			font-size: 16px;
			font-weight: bold;
		}
		.zz{
			margin-top: 60px;
		}
		.p2 {
			float: none !important;
			text-align: center;
			color: #fff !important;
			height: 21px;
			line-height: 21px;
		}
		.p2 a{
			color: #fff !important;
			font-size: 16px;
		}
		.fom{

		}
		.pipi{
			margin-top: 20px;
		}
		.pipi p{
			text-align: center;
			color: #fff;
			font-size: 18px;
			font-weight: bold;
		}
		/*.lolo img{*/
			/*box-shadow: 0px 0px 10px #000;*/
		/*}*/
	</style>
    
</head>
<body>
	<div class="section8">
		<div class="layui-form">
		<div class="container-1">
			<div class="kong"></div>
			<div class="lolo">
				<img src="{$sys.logo}" alt="" />
			</div>
			<div class="pipi">
				<p class="p">
					{$sys.name}
				</p>
			</div>
			<div class="fom">
				<form action="" method="post">
					<div class="f1">
						<input type="text" name="username" id="username" value="" placeholder="请输入会员编号"/>
						<img src="/static/user/images/mm1.png"/>
						
					</div>
					<div class="f1">
						<input type="password" name="password" id="password" value="" placeholder="请输入密码"/>
						<img src="/static/user/images/mm3.png"/>
					</div>
					<div class="sub">
						<button type="button" class="layui-btn" lay-filter="sub" lay-submit>立即登录</button>
					</div>
					
				</form>
				
			</div>
			<div class="zz mui-clearfix">
				<div class="container-1 mui-clearfix">
<!--					<p class="p1"><a href="javascript:void(0);">忘记密码？</a></p>-->
		<!--			<p class="p2">———— <a href="{:url('reg')}">注册账号</a> ————</p>-->
				</div>
				
			</div>
		</div>
		</div>
	</div>
</body>
<script src="/static/user/js/mui.min.js"></script>
<script src="/static/plugins/layui/layui.js"></script>
<script>
    layui.use(['form', 'layer'], function () {
        var form = layui.form,$ = layui.jquery;
        // 登录提交监听
        form.on('submit(sub)', function (data) {
            var loading = layer.load(1, {shade: [0.1, '#fff']});
            $.post("{:url('index')}",data.field,function(res){
                layer.close(loading);
                if(res.code > 0){
                    layer.msg(res.msg,{time:1000,icon:1},function(){
                        location.href = "{:url('index/index')}";
                    });
                }else{
                    layer.msg(res.msg,{time:1000,icon:2});
                    $('.captcha img').attr('src','{:url("verify")}?id='+Math.random());
                }
            });
        })
    })
</script>
    
<script>


	mui.init({
		swipeBack:true //启用右滑关闭功能
	});
</script>
<script>
	$(function () {
        var dd= $(window).height();
		$("body").css("height",dd);
    })
</script>
</html>